.class Lcom/estrongs/dlna/render/player/c$b;
.super Ljava/lang/Object;
.source "MediaPlayer.java"

# interfaces
.implements Lcom/estrongs/dlna/render/player/a;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/dlna/render/player/c;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "b"
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/dlna/render/player/c;


# direct methods
.method private constructor <init>(Lcom/estrongs/dlna/render/player/c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/estrongs/dlna/render/player/c;Lcom/estrongs/dlna/render/player/c$a;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/estrongs/dlna/render/player/c$b;-><init>(Lcom/estrongs/dlna/render/player/c;)V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    const-string v0, "onPlayEnd"

    .line 17
    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    .line 18
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    sget-object v1, Lorg/teleal/cling/support/model/TransportState;->STOPPED:Lorg/teleal/cling/support/model/TransportState;

    invoke-virtual {v0, v1}, Lcom/estrongs/dlna/render/player/c;->a(Lorg/teleal/cling/support/model/TransportState;)V

    .line 19
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 20
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/a;->a()V

    :cond_0
    return-void
.end method

.method public a(F)V
    .locals 11

    const/high16 v0, 0x42c80000    # 100.0f

    mul-float v0, v0, p1

    float-to-int v0, v0

    .line 5
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "onVolumeChange volumePercentage = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    const-string v2, " volume = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Les/m10;->c(Ljava/lang/String;)V

    .line 6
    iget-object v1, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    .line 7
    invoke-static {v1}, Lcom/estrongs/dlna/render/player/c;->b(Lcom/estrongs/dlna/render/player/c;)I

    move-result v1

    const/4 v2, 0x1

    const/4 v3, 0x0

    const/4 v4, 0x0

    if-nez v1, :cond_0

    if-gtz v0, :cond_1

    :cond_0
    iget-object v1, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v1}, Lcom/estrongs/dlna/render/player/c;->b(Lcom/estrongs/dlna/render/player/c;)I

    move-result v1

    if-lez v1, :cond_3

    if-nez v0, :cond_3

    :cond_1
    new-instance v1, Lorg/teleal/cling/support/renderingcontrol/lastchange/ChannelMute;

    sget-object v5, Lorg/teleal/cling/support/model/Channel;->Master:Lorg/teleal/cling/support/model/Channel;

    iget-object v6, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    .line 8
    invoke-static {v6}, Lcom/estrongs/dlna/render/player/c;->b(Lcom/estrongs/dlna/render/player/c;)I

    move-result v6

    if-lez v6, :cond_2

    if-nez v0, :cond_2

    const/4 v6, 0x1

    goto :goto_0

    :cond_2
    const/4 v6, 0x0

    :goto_0
    invoke-static {v6}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v6

    invoke-direct {v1, v5, v6}, Lorg/teleal/cling/support/renderingcontrol/lastchange/ChannelMute;-><init>(Lorg/teleal/cling/support/model/Channel;Ljava/lang/Boolean;)V

    goto :goto_1

    :cond_3
    move-object v1, v4

    .line 9
    :goto_1
    iget-object v5, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-virtual {v5}, Lcom/estrongs/dlna/render/player/c;->m()Lorg/teleal/cling/support/lastchange/LastChange;

    move-result-object v5

    iget-object v6, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-virtual {v6}, Lcom/estrongs/dlna/render/player/c;->j()Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;

    move-result-object v6

    const/4 v7, 0x2

    new-array v7, v7, [Lorg/teleal/cling/support/lastchange/EventedValue;

    new-instance v8, Lorg/teleal/cling/support/renderingcontrol/lastchange/RenderingControlVariable$Volume;

    new-instance v9, Lorg/teleal/cling/support/renderingcontrol/lastchange/ChannelVolume;

    sget-object v10, Lorg/teleal/cling/support/model/Channel;->Master:Lorg/teleal/cling/support/model/Channel;

    .line 10
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    invoke-direct {v9, v10, v0}, Lorg/teleal/cling/support/renderingcontrol/lastchange/ChannelVolume;-><init>(Lorg/teleal/cling/support/model/Channel;Ljava/lang/Integer;)V

    invoke-direct {v8, v9}, Lorg/teleal/cling/support/renderingcontrol/lastchange/RenderingControlVariable$Volume;-><init>(Lorg/teleal/cling/support/renderingcontrol/lastchange/ChannelVolume;)V

    aput-object v8, v7, v3

    if-eqz v1, :cond_4

    new-instance v4, Lorg/teleal/cling/support/renderingcontrol/lastchange/RenderingControlVariable$Mute;

    invoke-direct {v4, v1}, Lorg/teleal/cling/support/renderingcontrol/lastchange/RenderingControlVariable$Mute;-><init>(Lorg/teleal/cling/support/renderingcontrol/lastchange/ChannelMute;)V

    :cond_4
    aput-object v4, v7, v2

    .line 11
    invoke-virtual {v5, v6, v7}, Lorg/teleal/cling/support/lastchange/LastChange;->setEventedValue(Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;[Lorg/teleal/cling/support/lastchange/EventedValue;)V

    .line 12
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    if-eqz v0, :cond_5

    .line 13
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    invoke-interface {v0, p1}, Lcom/estrongs/dlna/render/player/a;->a(F)V

    :cond_5
    return-void
.end method

.method public a(J)V
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "onSeekChanged whereto = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-virtual {v0}, Lcom/estrongs/dlna/render/player/c;->d()Lorg/teleal/cling/support/model/PositionInfo;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;Lorg/teleal/cling/support/model/PositionInfo;)Lorg/teleal/cling/support/model/PositionInfo;

    .line 3
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    invoke-interface {v0, p1, p2}, Lcom/estrongs/dlna/render/player/a;->a(J)V

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 14
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "onPlayStart url = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    .line 15
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 16
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    invoke-interface {v0, p1, p2}, Lcom/estrongs/dlna/render/player/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public onPause()V
    .locals 2

    const-string v0, "onPause"

    .line 1
    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    sget-object v1, Lorg/teleal/cling/support/model/TransportState;->PAUSED_PLAYBACK:Lorg/teleal/cling/support/model/TransportState;

    invoke-virtual {v0, v1}, Lcom/estrongs/dlna/render/player/c;->a(Lorg/teleal/cling/support/model/TransportState;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/a;->onPause()V

    :cond_0
    return-void
.end method

.method public onPlay()V
    .locals 2

    const-string v0, "onPlay"

    .line 1
    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    .line 2
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    sget-object v1, Lorg/teleal/cling/support/model/TransportState;->PLAYING:Lorg/teleal/cling/support/model/TransportState;

    invoke-virtual {v0, v1}, Lcom/estrongs/dlna/render/player/c;->a(Lorg/teleal/cling/support/model/TransportState;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c$b;->a:Lcom/estrongs/dlna/render/player/c;

    invoke-static {v0}, Lcom/estrongs/dlna/render/player/c;->a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/a;->onPlay()V

    :cond_0
    return-void
.end method
